<div fwa-layout-container data-main="true" class="full-height full-width">
	<div fwa-layout-box="north"  padding="true" style="height: 320px;">
		<div class="full-width full-height background-white">
			<div class="full-width title">
				<div class="col-xs-12" >
					<h5>
						<b>自查通知单</b>
					</h5>
				</div>
			</div>
			<div class="col-xs-12 text-right" style="height: 40px;line-height: 40px;">
				<button class="btn btn-primary btn-sm" type="button" ng-click="downFile();">
					打印预览
				</button>
			</div>	
			<div class="row">
				<div class="col-xs-12 text-center">
					<h4>
						<b>
							<span ng-bind="selfFeedback.areaName">
							</span>
							医保定点医疗机构、定点零售药店预警通知单
						</b>
					</h4>
				</div>
			</div>
			<div class="row">&nbsp;</div>
			<div class="row form-group">
				<div class="col-xs-3 text-right">
					单位名称：
				</div>
				<div class="col-xs-2">
					<span ng-bind="selfFeedback.orgName">
					</span>
				</div>
				<div class="col-xs-3 text-right">
					通知单号：
				</div>
				<div class="col-xs-4">
					<span ng-bind="selfFeedback.noticeNo">
					</span>
				</div>
			</div>
			<div class="row form-group">
				<div class="col-xs-3 text-right">
					预警内容：
				</div>
				<div class="col-xs-8">
					<textarea style="height:40px;width:100%;float: left;resize : none;border:0;" readonly="readonly" ng-bind="selfFeedback.reason"></textarea>
				</div>
				<div class="col-xs-1">
				</div>
			</div>
			<div class="row form-group">
				<div class="col-xs-3 text-right">
					预警时段：
				</div>
				<div class="col-xs-8">
					<span ng-bind="selfFeedback.WarningDate"></span>
					<!-- <span ng-bind="selfFeedback.startWarningDate">
					</span>
						-
					<span ng-bind="selfFeedback.endWarningDate">
					</span> -->
				</div>
				<div class="col-xs-1">
				</div>
			</div>
			<div class="row form-group">
				<div class="col-xs-3 text-right">
					预警要求：
				</div>
				<div class="col-xs-8">
					<textarea style="height:80px;width:90%;float: left;resize : none;border:0;" readonly="readonly" ng-bind="selfFeedback.demand"></textarea>
				</div>
				<div class="col-xs-1">
				</div>
			</div>
		</div>
	</div>
	<div fwa-layout-box="center" >
		<div class="col-xs-6 full-height"  >
			<div fwa-layout-container fwa-layout-fullsize="true" class="full-height full-weidth" >
				<div fwa-layout-box="north" style="height: 44px;" >
					<div class="full-width title" style="margin-top: 8px;">
						<div class="col-xs-12" >
							<h5>
								<b>自查报告摘要</b>
							</h5>
						</div>
					</div>
				</div>
				<div fwa-layout-box="center"  >
					<div class=" full-height full-width background-white full-overflow-y">
					 <div class="col-xs-12 full-height full-width">
					     <div class="col-xs-12 ">
							<div class="col-xs-12 ">
								<label class="control-label">自查情况:</label>
							</div>
						</div>
						<div class="col-xs-12">
							<textarea  style="height:80px;"  class="form-control" maxlength="1330" ng-model="selfFeedback.check"></textarea>
						</div>
						<div class="col-xs-12 ">
							<div class="col-xs-12 ">
								<label class="control-label">整改措施:</label>
							</div>
						</div>
						<div class="col-xs-12 " >
							<textarea style="height:80px;"  class="form-control" maxlength="1330" ng-model="selfFeedback.corrective"></textarea>
						</div>
						
						<div class="col-xs-12">
						    <div class="form-group row" style="margin-top: 10px;">
								<div class="col-xs-10">
									<div class="col-xs-2  text-right" style="margin-top:4px;">
										上传附件:
									</div>
									<div class="col-xs-10">
										<upload-input data-accepts="txt,jpg" data-files="files" >
										</upload-input>
									</div>
								</div>
								<div class="col-xs-2" >
									<button  type="button" class="btn btn-blue btn-sm" ng-click="uploadFile();">
										上传
									</button>
								</div>
							</div>
						</div>

						<div class="col-xs-12" >
							<div class="text-center" >
								<font color="#bbb">单个文件最大不超过2M,格式仅支持jpg、jpeg、bmp、gif、png、txt、doc、docx、xls、xlsx、ppt、pptx、pdf、csv、rar、zip、7z、cab、iso</font>
							</div>
						</div>		
	
						<div class="row" >
							<div class="col-xs-12" style="padding:10px 16px">
								<div class="col-xs-12" style="padding:10px 20px;border: 1px dashed #cccccc;">
									 <div class="form-group col-xs-6 text-center cursor-pointer"  ng-repeat="data in fileDatas" >
						               <div ng-mouseover="mouseover(data.id);" style="height:90px">
							               <div class=" col-xs-3 text-right" ng-click="openLoadFile(data)">
							                	<div class="file_img"></div>
							               </div>
							               <div  class="col-xs-9 text-left"> {{data.name}} </br>文件大小:{{data.fileSize}}</br>上传时间:{{data.createDate}}</br>
							                 <a ng-show="data.id == showId" ng-click="downLoadFile(data)" >下载</a>    
							                 <a style="margin-left: 10px;" ng-show="data.id == showId" ng-click="deleteFile(data.id);" >删除</a>
							               <!--  <a style="margin-left: 10px;" ng-show="data.id == showId" ng-click="openLoadFile(data);" >查看</a> -->
							               </div>
						               </div>
						             </div>
								 </div>
							 </div>
				        </div>
				
						
					 </div>					    
					</div>
				</div>
			</div>
		</div>
		<div class="col-xs-6 full-height" >
			<div fwa-layout-container fwa-layout-fullsize="true" class="full-height full-weidth" >
				<div fwa-layout-box="north" style="height: 44px;" >
					<div class="full-width title" style="margin-top: 8px;">
						<div class="col-xs-12" >
							<h5>
								<b>自查结果统计</b>
							</h5>
						</div>
					</div>
				</div>
				<div fwa-layout-box="center"  >
					<div class="col-xs-12 full-height background-white full-overflow-y" >
						<fwa-table columns="columns"
							 data-rows="tableData"
							 data-check="true" 
							 style="position: absolute;left: 8px;right: 8px;top:10px;bottom:0px;"  > 
						</fwa-table>
					</div>
				</div>
				<div fwa-layout-box="south" class="page-height background-white" >
					<div class="col-xs-6 ">
						<a class="btn btn-primary btn-xs" ng-click="openModal();">
							&nbsp;新增&nbsp;
						</a> 
						<a class="btn btn-primary btn-xs" ng-click="delTabaleData();">
							&nbsp;删除&nbsp;
						</a> 
					</div>
					<div class="col-xs-6 ">
						<span>
							合计金额：
						</span>
						<span ng-bind="feeAmountCount">
						</span>元
					</div>
				</div>
			</div>
		</div>
	</div>
	<div fwa-layout-box="south" style="height: 80px;"  padding="true">
		<div class="col-xs-12 text-center" style="margin-top:15px;">
		   <!--  <a class="btn btn-primary btn-sm" ng-click="saveSelfFeedback();">
				&nbsp;暂存&nbsp;
			</a>  -->
			<a class="btn btn-primary btn-sm" ng-click="saveSelfFeedback();">
				&nbsp;提交&nbsp;
			</a> 
			<a class="btn btn-primary btn-sm" ng-click="backSelfFeedback();">
				&nbsp;返回&nbsp;
			</a> 
		</div>
	</div>
</div>
<fwa-loading data-show="selfFeedbackService.loading"> 
加载中... 
</fwa-loading>
<script type="text/ng-template" id="resultAdd_view.html">
 <!-- 弹出框 -->
<div class="modal-header">
	<button type="button" class="close" ng-click="onOk();">&times;</button>
	<h4 class="modal-title" >编辑</h4>
</div>
<div class="modal-body">
	<div class="row" style="margin-top: 20px;">
		<div class="form-group col-xs-6">
	 		<label class="col-xs-5 control-label text-right">省科室:</label>
	 		<div class="col-xs-7">
		 		<select ui-select2 class="full-width"
				   ng-model="form.deptCode" >
					<option value=""></option>
					<option ng-repeat="data in provincialOrgDepList" value="{{data.code}}">
						{{data.name}}
					</option>
				</select>
	 		</div>
		 </div>		
		<div class="form-group col-xs-6">
	 		<label class="col-xs-4 control-label text-right">费用类型:</label>
	 		<div class="col-xs-7">
		 		<select ui-select2 class="full-width"
				   ng-model="form.warnfeeTypeCode">
					<option value=""></option>
					<option ng-repeat="data in communityService.warnReasonDatas" value="{{data.code}}">
						{{data.name}}
					</option>
				</select>
	 		</div>
		 </div>	 
		 <div class="col-xs-1"></div>  
	</div>
	<div class="row" style="margin-top: 10px;">
		<div class="form-group col-xs-6">
	 		<label class="col-xs-5 control-label text-right">费用金额(元):</label>
	 		<div class="col-xs-7">
		 		<input class="form-control " type="text" ng-model="form.feeAmount" >
	 		</div>
		 </div>		
		<!--<div class="form-group col-xs-6">
	 		<label class="col-xs-4 control-label text-right">不合理原因:</label>
	 		<div class="col-xs-7">
		 		<select ui-select2 class="full-width"
				   ng-model="form.warnReasonCode">
					<option value=""></option>
					<option ng-repeat="data in communityService.warnReasonDatas" value="{{data.code}}">
						{{data.name}}
					</option>
				</select>
	 		</div>
		 </div>	 -->
<div class="form-group col-xs-6">
	 		<label class="col-xs-4 control-label text-right">医院科室:</label>
	 		<div class="col-xs-7">
<!-- Start -->
	<select ui-select2 class="full-width"
				   ng-model="form.orgDepCode" >
					<option value=""></option>
					<option ng-repeat="data in medicalOrgDeptList" value="{{data.workDepCode}}">
						{{data.workDep}}
					</option>
				</select>
<!-- End -->
	 		</div>	
		 </div>
		 <div class="col-xs-1"></div>  
	</div>
<div class="row" style="margin-top: 10px;">
		<div class="form-group col-xs-12">
	 		<label class="col-xs-2 control-label text-right" style="margin-left:20px;">概要:</label>
	 		<div class="col-xs-9">
		 		<textarea rows="7" ng-validation="{length:{rule:'0-100',msg:'字符不能超过100'}}" maxlength="100" class="form-control" ng-model="form.warnReason"></textarea>
	 		</div>
		 </div>	
	
</div>
</div>
<div class="modal-footer">
<div class="col-xs text-center">
	<button type="button" class="btn btn-primary btn-sm" ng-click="confirm();">确定</button>
	<button type="button" class="btn btn-primary btn-sm" ng-click="onOk();" >关闭</button>
</div>
</div>
</script>
